<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="layout" content="bocMain"/>
    <title>进件作业系统</title>
</head>

<body>
<header class="header-title">分期业务申请表签署方式</header>

    <g:form action="materialCheckMethodSave" method="post" class="myForm">
        <input type="hidden" name="id" id="id" value="${this?.opportunity?.id}">
        <input type="hidden" name="verifyMethod" id="verifyMethod">
    </g:form>

    <div class="bigBtn">
        <input type="button" class="weui-btn weui-btn_primary submit" style="border-radius: 0;margin: 7rem 0 4rem" value="现场纸质签署" />
        <input type="button" class="weui-btn weui-btn_primary submit" style="border-radius: 0" value="发送短信电子签署" />
    </div>

<script>

    $(function() 
    {
        $(".submit").click(function () 
        {
            var verifyMethod = $(this).val().trim();
            if (verifyMethod == "现场纸质签署") {
                $("#verifyMethod").val("现场验证");
            }
            if (verifyMethod == "发送短信电子签署") {
                $("#verifyMethod").val("发送短信");
            }
            $(".myForm").submit();
        })

        function helpMessage(message) {
            $(".helpMsg").text(message).fadeIn(200);
            setTimeout(function () {
                $(".helpMsg").fadeOut(200);
            }, 2000);
        }

        var message = '${flash.message}';
        if (message) {
            $(".helpMsg").text(message).fadeIn(200);
            setTimeout(function () {
                $(".helpMsg").fadeOut(200);
            }, 2000);
        }
    })

</script>
</body>
</html>
